package com.jeff.module.introduce.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class IndexController {
    
    @RequestMapping(value="/index",method=RequestMethod.GET)
    public String index(ModelMap model){
        model.addAttribute("message", "Hello Indexsdasd Spring MVC Framework!");
        return "index";
    }
    @RequestMapping(value="/introduce",method=RequestMethod.GET)
    public String introduce(ModelMap model){
        model.addAttribute("message", "Hello Indexsdasd Spring MVC Framework!");
        return "introduce";
    }
    @RequestMapping(value="/job",method=RequestMethod.GET)
    public String job(ModelMap model){
        model.addAttribute("message", "Hello Indexsdasd Spring MVC Framework!");
        return "job";
    }
    @RequestMapping(value="/news",method=RequestMethod.GET)
    public String news(ModelMap model){
        model.addAttribute("message", "Hello Indexsdasd Spring MVC Framework!");
        return "news";
    }
    @RequestMapping(value="/contact",method=RequestMethod.GET)
    public String contact(ModelMap model){
        model.addAttribute("message", "Hello Indexsdasd Spring MVC Framework!");
        return "contact";
    }
}
